Skip to content

Re-export core2::io or std::io depending on feature flags #1504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

TheBlueMatt
Copy link
Collaborator

This is useful in bindings as the lightning::io module is used in
the public interface, but also useful for users who want to refer
to the io as used in lightning irrespective of the feature flags.

@TheBlueMatt TheBlueMatt added this to the 0.0.107 milestone May 30, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2022

Codecov Report

Merging #1504 (b4a9b96) into main (a534a5e) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1504      +/-   ##
==========================================
- Coverage   91.00%   90.98%   -0.03%     
==========================================
  Files          80       80              
  Lines       43396    43396              
  Branches    43396    43396              
==========================================
- Hits        39494    39482      -12     
- Misses       3902     3914      +12     
Impacted Files Coverage Δ
lightning/src/lib.rs 100.00% <ø> (ø)
lightning-net-tokio/src/lib.rs 75.91% <0.00%> (-0.31%) ⬇️
lightning/src/ln/functional_tests.rs 97.00% <0.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a534a5e...b4a9b96. Read the comment docs.

tnull
tnull previously approved these changes May 31, 2022
@@ -78,9 +78,11 @@ pub mod ln;
pub mod routing;

#[cfg(feature = "std")]
use std::io;
/// Re-export of either `core2::io` or `std::io` depending on the `std` feature flag.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Re-export of either `core2::io` or `std::io` depending on the `std` feature flag.
/// Re-export of either `core2::io` or `std::io`, depending on the `std` feature flag.

This is useful in bindings as the `lightning::io` module is used in
the public interface, but also useful for users who want to refer
to the `io` as used in lightning irrespective of the feature flags.
@TheBlueMatt TheBlueMatt dismissed stale reviews from tnull and valentinewallace via b4a9b96 May 31, 2022 00:17
@tnull
Copy link
Contributor

tnull commented May 31, 2022

Seems you need to kick CI?

@jkczyz jkczyz merged commit f84ce03 into lightningdevkit:main Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants